import React, { Component } from 'react';
import {Link} from 'react-router'
export default class Category extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
          <span>
            {
              this.props.cate.map( cat => (
                <Link to={`/category/${cat.slug}`} key={cat.cat_ID} rel="category tag">{cat.name}</Link>
              ))
            }
          </span>
        );
    }
}
